﻿using System;
using System.Globalization;

namespace OccupierArchiver.Helpers
{
    public class CloudFlareBuster
    {
        public static string DecodeEmail(string a)
        {
            var s = "";
            var r = Int32.Parse(a.Substring(0, 2), NumberStyles.HexNumber);
            for (var j = 2; a.Length - j > 0; j += 2)
            {
                var c = Int32.Parse(a.Substring(j, 2), NumberStyles.HexNumber) ^ r;
                s += Char.ConvertFromUtf32(c);
            }
            return s;
        }
    }
}
